package com.money.tracker.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 返回体状态
 * <p>
 *
 * @author zhangshuai
 * &#064;date  2024/09/21
 */
@Getter
@AllArgsConstructor
public enum IResponseEnum {
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),


    NOT_PERMISSION(403, "没有访问权限，请联系管理员授权"),
    UNAUTHORIZED(401, "认证失败，无法访问系统资源"),


    UNKNOWN_VERIFICATION_CODE_TYPE(400, "未知的验证码类型"),
    CAPTCHA_ERROR(400, "验证码错误"),
    CAPTCHA_INVALID(400, "验证码失效"),
    USER_NOT_EXIST(404, "用户不存在"),
    USER_DISABLE(400, "用户被禁用"),
    PWD_ERR_CNT(500, "密码错误次数过多,请稍后重试"),
    PWD_ERR(500, "密码错误"),

    WRONG_PARAMETER(400, "排序参数错误"),

    DATA_NOT_EXIST(404, "数据不存在"),

    DATA_FILL_ANOMALIES(500, "数据填充异常");



    private final Integer code;
    private final String msg;
}
